<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<table class="display" id="example">
    <thead>
    <tr>
        <th>选择</th>
        <th>员工工号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>部门</th>
        <th>岗位</th>
        <th>职等</th>
        <th>面谈因素</th>
        <th>面谈状态</th>
    </tr>
    </thead>
    <tbody>
    <s:if test="#request.examFacetalkPojos==null || #request.examFacetalkPojos.size==0">
    <tr class="gradeX">
        <td colspan="9">暂无数据</td>
    </tr>
    </s:if>
    <s:else>
    <s:iterator value="#request.examFacetalkPojos" var="emp" status="sta">
    <s:if test="#sta.even">
    <tr class="gradeA">
        </s:if>
        <s:else>
    <tr class="gradeC">
        </s:else>
        <td><input type="checkbox" id="face_${emp.id}" value="1"/></td>
        <td><a href="#employee/staff_view.xhtml?id=${emp.staffid}">${emp.empNo}</a></td>
        <td>${emp.name}</td>
        <td>${emp.sex=="0"?"男":"女"}</td>
        <td>${emp.orgName}</td>
        <td>${emp.dutyName}</td>
        <td>${emp.gradeName}</td>
        <s:if test="#request.status==\"up\"">
            <td>分值上升${emp.score-emp.prevScore}分</td>
        </s:if>
        <s:else>
            <td>分值下降${emp.prevScore-emp.score}分</td>
        </s:else>
        <s:if test="#request.emp.facetime==null || #request.emp.facetime==false">
            <td id="exam_${emp.id}"><a class="button" href="javascript:modifyFaceStatus(${emp.id})"><span style="background:url(${ctx}/images/img/user_delete.png)"
                                                 class="icon">&nbsp;</span>未面谈</a></td>
        </s:if>
        <s:else>

            <td><a class="button" href="javascript://"><span style="background:url(${ctx}/images/img/user_comment.png)"
                                                             class="icon">&nbsp;</span>已面谈</a></td>
        </s:else>
    </tr>
    </s:iterator>
    </s:else>
    </tbody>
    </table>
    <p>
        <%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp" %>
    </p>